using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityCarEventsUpdateExtend
{
		public static CarEvents ToUpdateEntity(this RequestCarEventsDto dto)
		{
			return new CarEvents
			{
				CeDescription = dto.description,
				CeEndTime = dto.endTime,
				CeEventType = dto.eventType,
				CeId = dto.id,
				CeCount = dto.count,
				CeLocation = dto.location,
				CeStartTime = dto.startTime,
				CeStatus = dto.status,
				CeTitle = dto.title,
			};
		}
	}
}
